package dproxy.server.common.xml;

import java.util.Iterator;

/**
 * Helper class since java did not came with any implementation of : 
 * javax.xml.namespace.NamespaceContext.
 */
public class NamespaceContext implements javax.xml.namespace.NamespaceContext {

    /** Namespace prefix. */
    private String prefix;
    
    /** Namespace URI. */
    private String namespaceURI;
    
    /**
     * @param prefix Prefix
     * @param namespaceURI URI
     */
    public NamespaceContext(String prefix, String namespaceURI) {
        this.prefix = prefix;
        this.namespaceURI = namespaceURI;
    }
    
    public String getNamespaceURI(String parPrefix) {
        return namespaceURI;
    }

    public String getPrefix(String parNamespaceURI) {
        return prefix;
    }

    public Iterator getPrefixes(String parNamespaceURI) {
        return null;
    }

}
